<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // let goods = {
      //   uname: '小米10青春版',
      //   num: '100012816024',
      //   weight: '0.55kg',
      //   address: '中国大陆',
      // }
      // console.log(goods)
      //1.增
      // goods.color = '粉色'
      // console.log(goods)
      // //2.修改
      // goods.uname = 'RedMi K30Pro Zoom'
      // console.log(goods)
      // //3.查看
      // //3.1
      // console.log(goods.color)
      // //3.2
      // console.log(goods['num'])
      // //4.删除  不怎么使用
      // delete goods.color
      // console.log(goods)
      let goods = {
        uname: '小米10青春版',
        num: '100012816024',
        weight: '0.55kg',
        address: '中国大陆',
      }
      console.log(goods['uname'])
      console.log(goods['num'])
      console.log(goods['weight'])
      console.log(goods['address'])
    </script>
  </body>
</html>
